
public class Dbmanager {

	private static Dbmanager dbm;
	public int count =1;
	public void dosomething(){
		System.out.println("number is"+count);
	}
	public static Dbmanager getInstance() {
		if(dbm != null) {
			return dbm;
		}
		else {
			dbm = new Dbmanager();
			return dbm;
		}
	}
	public static void main(String[] args) {
		Dbmanager dbm1 =  Dbmanager.getInstance();
		Dbmanager dbm2 = Dbmanager.getInstance();
		Dbmanager dbm3 = Dbmanager.getInstance();
		
		System.out.println("Hello");
		dbm1.dosomething();
		dbm2.dosomething();
		

	}

}
